package com.jhx.mall.app.service.impl;

import com.jhx.mall.app.service.DtsOrderService;
import com.jhx.mall.dao.DtsOrderDao;
import com.jhx.mall.dao.impl.DtsOrderDaoImpl;
import com.jhx.mall.entity.DtsAddress;
import com.jhx.mall.entity.DtsComment;
import com.jhx.mall.vo.DtsOrdersVo;

import java.util.List;

public class DtsOrderServiceImpl implements DtsOrderService {

    DtsOrderDao dao = new DtsOrderDaoImpl();

    @Override
    public List<DtsOrdersVo> selectMyOrder(int userId, String orderStatus) {
        return dao.selectMyOrder(userId, orderStatus);
    }

    @Override
    public List<DtsOrdersVo> selectOrderDetail(int userId) {
        return dao.selectOrderDetail(userId);
    }

    @Override
    public int quOrder(int id) {
        return dao.quOrder(id);
    }

    @Override
    public int delOrder(int id) {
        return dao.delOrder(id);
    }

    @Override
    public int addComment(DtsComment comment) {
        return dao.addComment(comment);
    }
}
